Skip to content

docs: refresh home stats for oxlint, vite, and vitest Issue: #1511#1512

Merged
fengmk2 merged 22 commits into
voidzero-dev:mainfrom
nozomee:main
May 14, 2026
Merged

docs: refresh home stats for oxlint, vite, and vitest Issue: #1511#1512
fengmk2 merged 22 commits into
voidzero-dev:mainfrom
nozomee:main

Conversation

@nozomee
Copy link
Copy Markdown
Contributor

@nozomee nozomee commented May 4, 2026

Changes made

1. docs/.vitepress/theme/components/home/FeatureCheck.vue

  • ESLint rule count (Vite+ check section): 600+750+ (text before the ESLint code span).

2. docs/.vitepress/theme/components/home/ProductivityGrid.vue

“A trusted stack to standardize on” — Vite

  • Weekly npm downloads: 69m+115m+
  • GitHub stars: 78.7k80.4k

Vitest

  • Weekly npm downloads: 35m+57m+
  • GitHub stars: 16.1k16.5k

OXC (npm row uses oxlint package downloads)

  • Weekly npm downloads: 5m+5.3m+
  • GitHub stars: 19.8k21.0k

Files touched: 2
Net: 7 lines updated (string substitutions only; no logic or layout changes).

@netlify
Copy link
Copy Markdown

netlify Bot commented May 4, 2026

Deploy Preview for viteplus-preview ready!

Name Link
🔨 Latest commit 589b0dc
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a0563b128562c0008fa891a
😎 Deploy Preview https://deploy-preview-1512--viteplus-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@nozomee nozomee changed the title docs: refresh home stats for oxlint, vite, and vitest #1511 docs: refresh home stats for oxlint, vite, and vitest Issue: #1511 May 4, 2026
@nozomee nozomee mentioned this pull request May 4, 2026
4 tasks
Copy link
Copy Markdown
Collaborator

@jong-kyung jong-kyung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jong-kyung jong-kyung requested a review from mdong1909 May 4, 2026 06:35
@mdong1909
Copy link
Copy Markdown
Contributor

We want a way to automate the npm downloads & github stars. Otherwise the hard coded numbers will be outdated quickly. For example, vitest had 7% increase in downloads in the last week.

A potential way to do this is to have a fetch data script that is executed on a schedule via github actions. The data is stored as a json in this repo, which the home pages references

@nozomee
Copy link
Copy Markdown
Contributor Author

nozomee commented May 4, 2026

I’d like to take this on — I’m already actively working on it and will open a PR soon.

Right now the trusted-stack numbers on the homepage are hard-coded, which means they’ll drift quickly and require repeated manual edits over time (especially with npm download velocity changing week-to-week).

My planned implementation:

Add a lightweight fetch script that pulls:
Weekly npm downloads for Vite / Vitest / OXC
GitHub stars for their corresponding repos
Store that data in a committed JSON file inside the docs theme as the single source of truth
Replace hard-coded homepage values with JSON-driven values at build time
Add a scheduled GitHub Action (weekly + manual dispatch) that refreshes the JSON automatically and only commits when values actually change

Why this should help:

Keeps homepage metrics current automatically
Preserves the static-site model (no client-side API calls)
Avoids recurring hand-edits
Keeps changes transparent in git history
Contributors won’t need to do anything extra unless they specifically want an immediate local refresh
In the normal case, maintainers shouldn’t need to manually update stats either—the scheduled workflow handles it

Expected flow after merge:

Merge once
Workflow refreshes stats automatically on schedule
Homepage numbers stay fresh with near-zero maintenance
Manual command is only for immediate refreshes or branch-protection fallback

A few maintainer decisions may still be useful:

Whether github-actions[bot] should push JSON-only updates directly to main or use PRs
Preferred refresh cadence
Whether oxlint remains the best npm proxy for OXC

In short: automate the trusted-stack stats pipeline once, remove repetitive manual maintenance, and keep homepage credibility high with minimal long-term overhead. PR coming soon.

@nozomee
Copy link
Copy Markdown
Contributor Author

nozomee commented May 4, 2026

@jong-kyung @mdong1909 I’ve committed the changes to address these updates, Kindly review it once!

@jong-kyung
Copy link
Copy Markdown
Collaborator

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 23b81b2815

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/scripts/fetch-trusted-stack-stats.mjs Outdated
Comment thread docs/.vitepress/env.d.ts Outdated
Comment thread .github/workflows/update-trusted-stack-stats.yml Outdated
@jong-kyung jong-kyung self-assigned this May 4, 2026
@nozomee
Copy link
Copy Markdown
Contributor Author

nozomee commented May 4, 2026

@jong-kyung @mdong1909 I’ve committed the changes , Kindly review it once!

Comment thread docs/.vitepress/theme/data/fetch-trusted-stack-stats.ts
Comment thread .github/workflows/update-trusted-stack-stats.yml
@nozomee
Copy link
Copy Markdown
Contributor Author

nozomee commented May 4, 2026

@jong-kyung @camc314 I’ve committed the changes , Kindly review it once!

@jong-kyung
Copy link
Copy Markdown
Collaborator

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/.vitepress/theme/data/fetch-trusted-stack-stats.ts
@jong-kyung
Copy link
Copy Markdown
Collaborator

@nozomee Could you take a look at the failing CI?

…ocs lockfile

- Relocate fetch script to .github/scripts and update references
- Fix docs deps (no catalog:), update docs pnpm-lock
- Adjust docs scripts tsconfig for node/dom types
@nozomee
Copy link
Copy Markdown
Contributor Author

nozomee commented May 5, 2026

@jong-kyung I’ve committed the changes , Kindly review it once!

Comment thread .github/workflows/update-trusted-stack-stats.yml Outdated
Comment thread .github/scripts/tsconfig.json Outdated
Comment thread docs/package.json
- Update update-trusted-stack-stats workflow to use correct script path
- Move stats typecheck tsconfig under .github/scripts and remove docs/scripts/tsconfig.json
- Keep docs check script pointing to the new tsconfig
@jong-kyung
Copy link
Copy Markdown
Collaborator

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 35eff67ece

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/scripts/fetch-trusted-stack-stats.ts Outdated
Comment thread docs/package.json Outdated
Comment thread .github/scripts/fetch-trusted-stack-stats.ts Outdated
Comment thread docs/pnpm-lock.yaml
Comment thread .github/scripts/fetch-trusted-stack-stats.ts Outdated
nozomee added 2 commits May 8, 2026 23:06
Move the stats fetch script next to the docs data it generates and update docs + workflow callsites.
@nozomee
Copy link
Copy Markdown
Contributor Author

nozomee commented May 8, 2026

@jong-kyung hey there, check the latest commits , added the changes mentioned above!

@jong-kyung
Copy link
Copy Markdown
Collaborator

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Copy Markdown
Collaborator

@jong-kyung jong-kyung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nozomee Thanks for working through all the feedback — looks great!
Could you resolve the merge conflict with main?

Signed-off-by: deep <sarkarreall@gmail.com>
@nozomee
Copy link
Copy Markdown
Contributor Author

nozomee commented May 9, 2026

@nozomee Thanks for working through all the feedback — looks great! Could you resolve the merge conflict with main?

done!

@jong-kyung jong-kyung requested a review from fengmk2 May 9, 2026 07:27
Comment thread .github/workflows/update-trusted-stack-stats.yml Outdated
@nozomee
Copy link
Copy Markdown
Contributor Author

nozomee commented May 12, 2026

@jong-kyung @fengmk2 kindly check the changes! Pushed all the updated commits

Copy link
Copy Markdown
Member

@fengmk2 fengmk2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nozomee I will take over fixing the vp check error issue, and will merge it today.

fengmk2 added 3 commits May 14, 2026 13:47
Apply vp fmt formatting and fix lint errors flagged by vp check:
rename `__dirname` to `currentDir` (no-underscore-dangle) and switch
the post-write status log to console.error (no-console allows error).
Other workflows (release, test-vp-create, e2e-test) already pin
actions/setup-node to v6.4.0; bump the new trusted-stack-stats
workflow to match.
@fengmk2 fengmk2 merged commit 1a7fdea into voidzero-dev:main May 14, 2026
40 checks passed
@fengmk2
Copy link
Copy Markdown
Member

fengmk2 commented May 14, 2026

#1573 action works, thanks again @nozomee @jong-kyung

@nozomee
Copy link
Copy Markdown
Contributor Author

nozomee commented May 14, 2026

Loved working with you both — learned a lot and really appreciated it! 🙌 @fengmk2 @jong-kyung

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants